#@layout()
#define main()
#define css()
<link rel="stylesheet" type="text/css" href="/static/css/user.css">
#end
<!-- 内容区域 -->
<div class="aw-container-wrap">
    <div class="container">
        <div class="row">
            <div class="aw-content-wrap clearfix">
                <div class="col-sm-12 col-md-9 aw-main-content">
                    <!-- 用户数据内容 -->
                    <div class="aw-mod aw-user-detail-box">
                        <div class="mod-head">
                            <img src="/upload/avatar/#(user.avatar)" alt="#(user.nickName)" style="width: 8%;"/>
                            <span class="pull-right operate">
							  <a class="text-color-999" onclick='sendUserMessage(#(user.uid))'><i class="icon icon-inbox"></i>私信</a>
							 #if(friendRelation == 0)
							  <a href='javascript:void(0);' onclick='handleFriend(this, true, #(user.uid));' class='follow btn btn-normal btn-success' data-original-title='' title='关注他'>
							    <span>关注</span><em>|</em>
							  </a>
							  #else if(friendRelation == 1)
							  <a href="javascript:void(0);" onclick="handleFriend(this, false, #(user.uid));" class="follow btn btn-normal btn-success active" data-original-title="" title="取消关注">
  								<span>已经关注</span><em>|</em>
							  </a>
							  #else if(friendRelation == 2)
							  <a href="javascript:void(0);" onclick="handleFriend(this, true, #(user.uid));" class="follow btn btn-normal btn-success" data-original-title="" title="添加关注">
  								<span>您的粉丝</span><em>|</em>
							  </a>
							  #else
							  <a href="javascript:void(0);" onclick="handleFriend(this, false, #(user.uid));" class="follow btn btn-normal btn-success active" data-original-title="" title="相互关注">
  								<span>相关关注</span><em>|</em>
							  </a>							  
							  #end
							</span>
                            <h1>用户昵称：#(user.nickName)
                                #if(user.is_auth==1)
                                <i class="icon-v " title="个人认证"></i>
                                #end
                            </h1>
                            <p class="text-color-999">个人签名：#(user.sign)</p>
                        </div>
                        <div class="mod-body">
                            <div class="meta">
                                <span>
                                    <i class="icon icon-prestige"></i> 威望 :
                                    <em class="aw-text-color-green">#(user.prestige)</em>
                                </span>
                                <span>
                                    <i class="icon icon-score"></i> 积分 :
                                    <em class="aw-text-color-orange">#(user.points)</em>
                                </span>
                                <span>
                                    <i class="icon icon-agree"></i> 热度 :
                                    <em class="aw-text-color-orange">#(user.views)
                                    </em>
                                </span>
                            </div>
                        </div>
                        <div class="mod-footer">
                            <ul class="nav nav-tabs aw-nav-tabs">
                                <li class="active">
                                    <a href="#article" id="page_overview" data-toggle="tab">文章</a>
                                </li>
                                <li>
                                    <a href="#reply" id="page_questions" data-toggle="tab">回复</a>
                                </li>
                                <li>
                                    <a href="#attention" id="page_questions" data-toggle="tab">关注</a>
                                </li>
                                 <li>
                                    <a href="#fensis" id="page_questions" data-toggle="tab">粉丝</a>
                                </li>
                                <li>
                                    <a href="#detail" id="page_questions" data-toggle="tab">详情信息</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <!-- end 用户数据内容 -->
                    <div class="aw-user-center-tab">
                        <div class="tab-content">
                            <div class="tab-pane active" id="article">
                                <!-- 文章 -->
                                <div class="aw-mod">
                                    <div class="mod-head">
                                        <h3>文章</h3>
                                    </div>
                                    <div class="mod-body">
                                        <div class="aw-profile-answer-list">
                                        	#for(userArticle : userArticleList.getList())
                                            <div class="aw-item">
                                                <div class="mod-head">
                                                    <h4><a href="/detail/#(userArticle.aid)">#(userArticle.title)</a></h4>
                                                </div>
                                                <div class="mod-body">
													<p class="text-color-999">#(userArticle.replyCount) 个评论 • #(userArticle.favoriteCount) 个收藏  • #(userArticle.views) 次浏览 • #date(userArticle.addtime, "yyyy-MM-dd")</p>
												</div>
                                            </div>
                                            #end
                                        </div>
                                    </div>
                                    <div class="mod-body">
                                    <!-- 分页 -->
									<div class="page-control">
										#@paginate(userArticleList.pageNumber, userArticleList.totalPage, "/user/detail/" + user.uid + "?p=")
									</div>
								</div>
                                </div>
                                <!-- end 文章 -->
                            </div>
                            <!-- 回复 -->
                            <div class="tab-pane" id="reply">
                                <div class="aw-mod">
                                    <div class="mod-head">
                                        <h3>回复</h3>
                                    </div>
                                    <div class="mod-body">
                                        <div class="aw-profile-publish-list" id="contents_user_actions_questions">
                                        #for(userReply : userReplyList)
                                        <div class="aw-item">
											<div class="aw-mod">
												<div class="mod-head">
													<h4 class="aw-hide-txt">
														文章标题：<a href="/detail/#(userReply.aid)">#(userReply.title)</a>
													</h4>
												</div>
												<div class="mod-body">
													<p class="text-color-999">回复内容：#(userReply.content)</p>
													<p class="text-color-999">回复时间：#date(userReply.addtime, "yyyy-MM-dd")</p>
												</div>
											</div>
										</div>
										#end
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!-- end 回复 -->
                            
                            <!-- 关注 -->
							<div class="tab-pane" id="attention">
							  <!-- 自定义切换 -->
							  <div class="aw-mod">
							  	<div class="mod-head">
                                    <h3>他的关注</h3>
                                 </div>
							    <div class="mod-body">
							      <div class="aw-tab-content">
							        <div class="aw-mod aw-user-center-follow-mod">
							          <div class="mod-body">
							            <ul id="contents_user_follows" class="clearfix">
							              #for(friendList : userAttentionList)
							              <li>
							                <div class="mod-head">
							                  <a class="aw-user-img pull-left aw-border-radius-5" data-id="#(friendList.uid)" href="/user/detail/#(friendList.uid)">
							                    <img src="/upload/avatar/#(friendList.avatar)" alt="#(friendList.nickName)" style="width:50px;">
							                  </a>
							                  <p>
							                    <a href="/user/detail/#(friendList.uid)">#(friendList.nickName)</a>
							                  </p>
							                </div>
							                <div class="mod-body">
							                  <p class="text-color-999 aw-hide-txt"></p>
							                </div>
							                <div class="mod-footer meta">
							                  <span>
							                    <i class="icon icon-prestige"></i>威望
							                    <em class="aw-text-color-green">#(friendList.prestige)</em>
							                  </span>
							                  <span>
							                    <i class="icon icon-score"></i>积分
							                    <em class="aw-text-color-orange">#(friendList.points)</em>
							                  </span>
							                  <!-- <span><i class="icon icon-thank"></i>感谢 <em class="aw-text-color-orange">0</em></span> -->
							                </div>
							              </li>
							              #end
							            </ul>
							          </div>
							        </div>
							      </div>
							    </div>
							  </div>
							  <!-- end 自定义切换 -->
							</div>
                            
                            <!-- end关注 -->

                             <!-- 粉丝 -->
                            <div class="tab-pane" id="fensis">
							  <!-- 自定义切换 -->
							  <div class="aw-mod">
							  	<div class="mod-head">
                                    <h3>他的粉丝</h3>
                                 </div>
							    <div class="mod-body">
							      <div class="aw-tab-content">
							        <div class="aw-mod aw-user-center-follow-mod">
							          <div class="mod-body">
							            <ul id="contents_user_follows" class="clearfix">
							              #for(fanList : userFanList)
							              <li>
							                <div class="mod-head">
							                  <a class="aw-user-img pull-left aw-border-radius-5" data-id="#(fanList.uid)" href="/user/detail/#(fanList.uid)">
							                    <img src="/upload/avatar/#(fanList.avatar)" alt="#(fanList.nickName)" style="width:50px;">
							                  </a>
							                  <p>
							                    <a href="/user/detail/#(fanList.uid)">#(fanList.nickName)</a>
							                  </p>
							                </div>
							                <div class="mod-body">
							                  <p class="text-color-999 aw-hide-txt"></p>
							                </div>
							                <div class="mod-footer meta">
							                  <span>
							                    <i class="icon icon-prestige"></i>威望
							                    <em class="aw-text-color-green">#(fanList.prestige)</em>
							                  </span>
							                  <span>
							                    <i class="icon icon-score"></i>积分
							                    <em class="aw-text-color-orange">#(fanList.points)</em>
							                  </span>
							                  <!-- <span><i class="icon icon-thank"></i>感谢 <em class="aw-text-color-orange">0</em></span> -->
							                </div>
							              </li>
							              #end
							            </ul>
							          </div>
							        </div>
							      </div>
							    </div>
							  </div>
							  <!-- end 自定义切换 -->
							</div>

                            <!-- end粉丝 -->
  
							<!-- 详细资料 -->
                            <div class="tab-pane" id="detail">
                                <div class="aw-mod">
                                    <div class="mod-head">
                                        <h3>详细资料</h3>
                                    </div>
                                    <div class="mod-body aw-user-center-details">
                                        <dl>
                                            <dt>
                                                <span>个人成就:</span>
                                            </dt>
                                            <dd>
                                                <p class="meta">
                                                    <span>
                                                        <i class="icon icon-prestige"></i>威望:
                                                        <em class="aw-text-color-green">#(user.prestige)</em>
                                                    </span>
                                                    <span>
                                                        <i class="icon icon-score"></i>积分:
                                                        <em class="aw-text-color-orange">#(user.points)</em>
                                                    </span>
                                                    <span>
                                                        <i class="icon icon-agree"></i> 热度:
                                                        <em class="aw-text-color-orange">#(user.views)</em>
                                                    </span>
                                                </p>
                                            </dd>
                                        </dl>
                                        <dl>
                                            <dt><span>注册时间:</span></dt>
                                            <dd>#date(user.createAt, "yyyy-MM-dd")</dd>
                                        </dl>
                                        #if(user.is_auth==1)
                                        <dl>
                                            <dt><span>认证信息:</span></dt>
                                            <dd>#(user.authName)</dd>
                                        </dl>
                                        <dl>
                                            <dt><span>认证时间:</span></dt>
                                            <dd>#date(user.authTime, "yyyy-MM-dd")</dd>
                                        </dl>
                                        #else
                                        <dl>
                                            <dt><span>未认证</span></dt>
                                        </dl>
                                        #end
                                    </div>
                                </div>
                            </div>
                            <!-- end 详细资料 -->
                        </div>
                    </div>
                </div>
                <!-- 侧边栏 -->
                <div class="col-sm-12 col-md-3 aw-side-bar">
                    <div class="aw-mod">
                        <div class="mod-body">
                            <span class="aw-text-color-666">主页访问量 : #(user.views) 次访问</span>
                        </div>
                    </div>
                </div>
                <!-- end 侧边栏 -->
            </div>
        </div>
    </div>
</div>
<!-- 内容区域end -->
#end

#define js()
<script type="text/javascript" src="/static/layer/layer/layer.js"></script>
#end